@import "../../styles/styles"; // Import global styles if any

.dbconnectWrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Set a max-width for the container */
  margin: 0 auto; /* Center the container */

  h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #343a40;
  }

  .dbConnectSection,
  .textToSQLSection {
    flex: 1; /* Allow each section to take up equal space */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 20px;

    &:last-child {
      margin-right: 0; /* Remove the right margin for the last section */
    }
  }

  .form {
    width: 100%;
    margin-bottom: 20px;

    .inputField {
      margin-bottom: 15px;

      label {
        font-size: 1.1rem;
        font-weight: 500;
        color: #495057;
        margin-bottom: 10px;
        display: block;
      }

      input,
      textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 1rem;
        resize: vertical;
        &:focus {
          border-color: #007bff;
          outline: none;
        }
      }

      .loader {
        display: flex;
        justify-content: center;
      }
    }

    .submitButton {
      width: 100%;
      height: 45px;
      padding: 12px;
      background-color: #007bff;
      color: white;
      font-size: 1rem;
      font-weight: 500;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #0056b3;
      }

      &:active {
        background-color: #004494;
      }
    }
  }

  .status,
  .error {
    font-size: 1.1rem;
    margin-top: 10px;
    font-weight: 500;
  }

  .status {
    color: green;
  }

  .error {
    color: red;
  }

  .sqlQuerySection {
    width: 100%;
    margin-top: 20px;
    margin-right: 20px;

    label {
      font-size: 1.1rem;
      font-weight: 500;
      color: #495057;
      margin-bottom: 10px;
      margin-top: 10px;
      display: block;
    }

    textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid #ced4da;
      border-radius: 4px;
      font-size: 1rem;
      resize: vertical;
      min-height: 95px;
      box-sizing: border-box;
    }
  }
}
